package br.com.dts.box
{
	public class BOXSchemas
	{
		[Bindable]
		public static var Label:XML = createLabelSchema();
		
		[Bindable]
		public static var Canvas:XML = createCanvasSchema();
		
		
		private static function createLabelSchema():XML
		{
			var schema:XML=
				<object className="Label">
					<properties>
						<property name="id"/>
						<property name="height"/>
						<property name="width"/>
					</properties>
					<styles>
						<style name="color"/>
						<style name="fontSize"/>
						<style name="fontStyle"/>
						<style name="fontWeight"/>
					</styles>
					<children/>
				</object>
			;			
			return schema;
		}
		
		private static function createCanvasSchema():XML
		{
			var schema:XML=
				<object className="Canvas">
					<properties>
						<property name="id"/>
						<property name="height"/>
						<property name="width"/>
					</properties>
					<styles>
						<style name="backgroundColor"/>
						<style name="borderStyle"/>
						<style name="borderThickness"/>
						<style name="borderColor"/>
						<style name="borderSides"/>
					</styles>
					<children>
						<includes className="Label"/>
					</children>
				</object>
			;			
			return schema;
		}
		
	}
}